﻿@model LyyCMS.Core.Models.ArticleCategory

@{
    ViewData["Title"] = "Create";
}


<div style="margin:0px 10px; padding:20px 0">
    <a asp-action="Create">
        <i class="fas fa-pencil-alt">
        </i>新建
    </a>
</div>


<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="ChannelId" class="control-label"></label>
                <select id="ChannelId" name="ChannelId" style="width: 150px; height: 23px;">
                    @foreach (var item in (IList<LyyCMS.Core.Models.Channel>)ViewData["channel"])
                    {
                        <option value="@item.Id">@item.Title</option>
                    }
                </select>
                <span asp-validation-for="ChannelId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ParentId" class="control-label"></label>
                <select id="ParentId" name="ParentId" style="width: 150px; height: 23px;">
                    @foreach (var item in (IList<LyyCMS.Core.Models.ArticleCategory>)ViewData["cate"])
                    {
                        <option value="@item.Id">@item.Title</option>
                    }
                </select>
                <span asp-validation-for="ParentId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Title" class="control-label"></label>
                <input asp-for="Title" class="form-control" />
                <span asp-validation-for="Title" class="text-danger"></span>
            </div>



            <div class="form-group">
                <label asp-for="SortId" class="control-label"></label>
                <input asp-for="SortId" class="form-control" value="99" />
                <span asp-validation-for="SortId" class="text-danger"></span>
            </div>
            @*<div class="form-group">
                    <label asp-for="CreationTime" class="control-label"></label>
                    <input asp-for="CreationTime" class="form-control" />
                    <span asp-validation-for="CreationTime" class="text-danger"></span>
                </div>*@
            @*<div class="form-group">
                    <label asp-for="DeletionTime" class="control-label"></label>
                    <input asp-for="DeletionTime" class="form-control" />
                    <span asp-validation-for="DeletionTime" class="text-danger"></span>
                </div>*@
            @*<div class="form-group form-check">
                    <label class="form-check-label">
                        <input class="form-check-input" asp-for="IsDeleted" /> @Html.DisplayNameFor(model => model.IsDeleted)
                    </label>
                </div>*@

            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">Back to List</a>
</div>

